<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>ObjectDetection</title>
</head>
<body>
<form enctype='multipart/form-data' method='POST' action="\ObjectDetection" style="margin-left: 10px;margin-top: 10px;">
    <div>
        <label>特征集合</label>
        <select name="models"/>
        <option value="retinanet_resnet50_fpn_coco-eeacb38b.pth">RetinaNet</option>
        <option value="yolov3.pt" selected>YOLOv3</option>
        <option value="tiny-yolov3.pt">TinyYOLOv3</option>
        </select>
    </div>
    <div>
        <input type="file" name="file"/>
        <input type="submit" name="submit" value="上传"/>
    </div>
</form>
<div style="margin-left: 10px;margin-top: 20px;">
    {% if filename %}
    <img src="/image/uploads/{{ filename }}" width="500px">
    <img src="/image/result/{{ filename }}" width="500px">
    {% endif %}
</div>
{% for msg in get_flashed_messages() %}
<p>{{ msg }}</p>
{% endfor %}
</body>
</html>